import Router from '../router'

Router.beforeEach((to, from, next) => {
  if (to.matched.some(record => record.meta.requiresAuth)) {
    // if (!localStorage.getItem("ACCESSTOKEN")) {
    //   '跳转到登录页面'
    // } else {
    //   next()
    // }
    next()
  } else {
    next() // 确保一定要调用 next()
  }
})